package com.shigu.user.bo;

import com.shigu.MallRequest;
import com.shigu.annotations.PhoneCheck;
import com.shigu.validation.tags.Telephone;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
public class RegitserRequest extends MallRequest {

    @NotBlank(message = "密码不能为空")
    @Length(min=0, max=8,message = "用户名长度请在0到8之间")
    private String username;
    @PhoneCheck
    private String telephone;

    @NotBlank(message = "密码不能为空")
    @Length(min=6,message="密码长度不能小于6位")
    private String password;

    private String imgData;

    @NotBlank(message = "请填写邀请码")
    private String inviteCode;

    private String version;
    private String os;
}
